<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Sklad díl</title>
<style type="text/css">

	label, input, textarea {
		display: block;
		font: 14px/1.0 Verdana, Tahoma, sans-serif;
	}
	
	label {
		font-weight: normal;
		margin: 5px 0;
		font-size: 16px;
	}
	
	input, textarea {
		border: 1px solid #BACACC;
		padding: 5px;
		margin-bottom: 10px;
	}
	
	input:hover, textarea:hover {
		border: 1px solid #667A7D;
	}
	
	input:focus, textarea:focus {
		border: 1px solid black;
	}
	

</style>
</head>
<body>
 <div style="widht:auto">
  <h1>Sklad dílů - přidej díl</h1>
 
   
 <div style="padding-right:10px; width:200px;float:left;">

 <h2>Menu</h2>
 <ul>
 
  <li><a href="<c:url value="/skladdilu/browseparts.html"></c:url>">Sklad dílu</a></li>
  <li><a href="<c:url value="/skladdilu/inventory.html"></c:url>">Inventura</a></li>
  <li><a href="<c:url value="/skladdilu/addpart.html"></c:url>">Přidej díl</a></li>
    </ul>
 </div>    
  <div style="width:auto;float:left;border-left: 1px dotted black;">

      
  <c:if test="${error}">
     CHYBA: ${message}
   </c:if> 
   
<form:form action="/abc/skladdilu/addpart.html" method="post" commandName="addForm">
    <ul style="list-style-type:none">
        <li>
            <label for="uid">UID</label>
            <input name="uid"  type="text"/>
        </li>
        <li>
            <label for="name">Nazev</label>
            <input name="name"  type="text"/>
        </li>
        <li>
            <label for="count">Pocet</label>
            <input name="count" value="0" type="text"/>
        </li>
        <li>
            <label for="details">Detail</label>
            <textarea name="details" rows="10" cols="30" ></textarea>
        </li>
        <li>
            <input type="submit" value="Přidat"/>
        </li>
    </ul>
</form:form>
  </div>
  <div style="clear:both"></div>
 </div> 
 


</body>
</html>